//related to header2.ui
var root = ui("$");// 或者var root = ui("root");

var app = sm('do_App');
var page = sm("do_Page");

var back_btn = ui("back_btn");

var gridData = mm("do_ListData");

page.on('back',function(){
	app.closePage();
})

/*****返回按钮*****/
back_btn.on("touch",function(){
	app.closePage();
})


/*****页面标题*****/
root.setMapping({
	// ui的id.ui.属性：绑定到一个变量
	"header_title.text" : "header_title",
})

var search_btn = ui("search_btn");
search_btn.on("touch",function(){
	app.openPage({
		id:"search",
        source : "source://view/search/search.ui",
        animationType : "push_r2l_1"
	})
})